<!DOCTYPE html>
<html>

<head lang="en">
    <meta charset="UTF-8">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    <title>常量配置</title>
    <!--<script charset="utf-8" type="text/javascript" src="js/init3.js?v=2014122229711"></script>-->
    <script charset="utf-8" type="text/javascript" src="js/init.js?v=2014122229711"></script>
</head>

<body>
<header></header>
<div class="wrapper wrapper-video">
    <nav>
        <ul class="breadcrumb">
            <li>系统<span class="divider"> &gt; </span></li>
            <li>常量设置</li>
        </ul>
    </nav>
    <div class="container container-video">
        <div class="container-list">
            <div class="query" id="QueryContainer">
                <form class="form-horizontal form-container form-inline" name="basicFrm" autocomplete="off">
                    <div class="container">
                        <div class="row">
                            <div class="span6">
                                <div class="control-group cleargroup">
                                    <label class="control-label">类型：</label>

                                    <div class="controls">
                                        <input name="type" type="text">
                                    </div>
                                </div>
                            </div>
                            <div class="span4">
                                <div class="control-group cleargroup">
                                    <label class="control-label">启用状态：</label>

                                    <div class="controls">
                                        <select name="status" class="input-small pps-content-type" autocomplete="off">
                                            <option value="">请选择</option>
                                            <option value="2">启用</option>
                                            <option value="1">未启用</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="span6">
                                <div class="control-group cleargroup">
                                    <label class="control-label">描述：</label>

                                    <div class="controls">
                                        <input name="descr" type="text">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label"></label>

                            <div class="controls">
                                <button type="button" class="btn btn-primary query-btn">搜索</button>
                                <button type="reset" id="resetFrm" class="btn">重置</button>
                                <button type="button" class="btn" onclick="SysConfig.Util.openAddView()">新建</button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>

            <div class="result">
                <div>
                    <table class="grid" id="list"></table>
                    <div id="pager"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="edit-dlg" class="form-inline" style="display:none;">
    <form role="form" id="addFrom" class="form-horizontal">
        <input type="hidden" name="id">
        <div class="control-group">
            <label class="control-label">类型</label>
            <input type="text"  name="type" maxlength="20"  class="form-control">
        </div>
        <div class="control-group">
            <label class="control-label">索引</label>
            <input type="text"  name="key"  class="form-control" onkeyup="this.value=this.value.replace(/\D/g,'')"
                   onafterpaste="this.value=this.value.replace(/\D/g,'')" >
        </div>
        <div class="control-group">
            <label class="control-label">值</label>
            <input type="text"  name="val" maxlength="50" class="form-control">
        </div>
        <div class="control-group">
            <label class="control-label">描述</label>
            <input type="text" name="desc" maxlength="32" >
        </div>
        <div class="control-group">
            <label class="control-label">启用状态</label>
            <label ><input type="radio" value="2" name="status">启用</label>
            <label ><input type="radio" checked="checked" value="1" name="status">停用</label>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="button" onclick="SysConfig.Util.doSubmitElement()" class="btn btn-primary query-btn">确定</button>
                <button type="button" onclick="SysConfig.Util.doCancel()" class="btn">取消</button>
            </div>
        </div>
    </form>
</div>

</div>
</body>
<script type="text/javascript">
    require(['epg'], function () {
        SysConfig.Action.listRun();
    })
</script>
</html>